package com.cn.wanxi.jwt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.web.DefaultSecurityFilterChain;
import org.springframework.security.web.FilterChainProxy;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.web.filter.DelegatingFilterProxy;

import java.util.List;

@SpringBootApplication
@MapperScan("com.cn.wanxi.jwt.mapper")
public class JwtApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext application = SpringApplication.run(JwtApplication.class, args);
//        FilterChainProxy

//        DefaultSecurityFilterChain defaultSecurityFilterChain = application.getBean(DefaultSecurityFilterChain.class);

//        DelegatingFilterProxy


        List<SecurityFilterChain> filterChains = application.getBean(FilterChainProxy.class).getFilterChains();


//        System.out.println(123456789);

    }

}
